﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="UserMn.aspx.cs" Inherits="Portal_KonTum.Admin.UserMn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container_12">
        <!-- Dashboard icons -->
        <div class="grid_7">
            <a class="dashboard-module" href="UserMn.aspx">
            <img alt="edit" height="64" src="css/images/Crystal_Clear_user.gif" width="64" /> <span>Quản Lý User</span> </a><a class="dashboard-module"  href="ConfigureWeb.aspx">
            <img alt="edit" height="64" src="css/images/Crystal_Clear_settings.gif" tppabs="http://www.xooom.pl/work/magicadmin/images/Crystal_Clear_settings.gif" width="64" /> <span>Cài Đặt</span> </a>
            <div style="clear: both">
            </div>
        </div>
        <!-- End .grid_7 -->
        <div style="clear:both;">
        </div>
        <div class="grid_12">
            <div class="bottom-spacing">
                <div>
                    <label runat="server" id="lbnotes" class="notification n-success" visible="False">Chỉnh sửa thành công.</label>
                </div>
                <!-- Button -->
                <div class="float-right">
                    <a class="button" href="UserNew.aspx"><span>Tạo User<img alt="New article" height="9" src="css/images/plus-small.gif" tppabs="http://www.xooom.pl/work/magicadmin/images/plus-small.gif" width="12" /></span></a>
                </div>
                <!-- Table records filtering -->    
                </div>
                <!-- Example table -->
                <div class="module">
                    <h2><span>Danh sách User</span></h2>
                    <div class="module-table-body">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            EnableModelValidation="True" onrowdatabound="GridView1_RowDataBound" 
                            onrowcommand="GridView1_RowCommand" AllowPaging="True" 
                            onpageindexchanged="GridView1_PageIndexChanged" 
                            onpageindexchanging="GridView1_PageIndexChanging">
                            <Columns>
                                <asp:TemplateField HeaderText="#">
                                    <ItemTemplate><%# Container.DataItemIndex + 1 %></ItemTemplate>
                                </asp:TemplateField>
                                <asp:HyperLinkField DataTextField="UserName" HeaderText="Tên tài khoản" />
                                <asp:BoundField HeaderText="Họ tên" DataField="FullName" />
                                <asp:BoundField DataField="CreateDate" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Ngày tạo" />
                                <asp:TemplateField HeaderText="Quyền">
                                    <ItemTemplate>
                                    <asp:HiddenField ID="hf_role" runat="server" Value='<%# Eval("RoleID") %>'></asp:HiddenField>
                                    <asp:Label ID="lb_role" runat="server" Text='<%# Eval("RoleID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Trạng Thái">
                                    <ItemTemplate>
                                    <asp:HiddenField ID="hf_status" runat="server" Value='<%# Eval("statusID") %>'></asp:HiddenField>
                                    <asp:Label ID="lb_status" runat="server" Text='<%# Eval("statusID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tùy chỉnh">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("UserID") %>' CommandName="rowEdit" OnClientClick="return confirm(&quot;Are you sure you want to Edit this entry?&quot;);" Text="Edit">
                                            Sửa
                                            <img alt="edit" height="16" src="css/images/pencil.gif" title="Sửa bài" tppabs="http://www.xooom.pl/work/magicadmin/images/pencil.gif" width="16" />
                                        </asp:LinkButton>
                                        |
                                        <asp:LinkButton ID="LinkButton3" Text="Delete" CommandName="rowDelete" CommandArgument='<%# Eval("UserID") %>' OnClientClick='return confirm("Are you sure you want to delete this entry?");' runat="server">
                                            Xóa
                                            <img alt="published" height="16" src="css/images/cross-on-white.gif" title="Xóa bài" tppabs="http://www.xooom.pl/work/magicadmin/images/tick-circle.gif" width="16" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle Width="100px" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle BorderStyle="None" HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:GridView>
                        <div style="clear: both">
                        </div>
                    </div>
                    <!-- End .module-table-body -->
                </div>
            <!-- End .module -->
            <div class="pagination">
                
            </div>
        </div>
        <!-- End .grid_12 -->
        <!-- Categories list -->
        <div style="clear:both;">
        </div>            
        <div style="clear:both;">
        </div>
    </div>
    <!-- End .container_12 -->
</asp:Content>
